<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <title>创客英雄</title>
    <script src="http://how2j.cn/study/js/jquery/2.0.0/jquery.min.js"></script>
    <link href="__TMPL__Portal/assets/css/ckyx.css" rel="stylesheet">
    <script src="__TMPL__Portal/assets/js/ckyx.min.js"></script>
    <link href="__TMPL__Portal/assets/css/main.css" rel="stylesheet">
</head>

<body>
<!--header-->
<tc_include file="Portal:head"/>
<div class="nav_box">
    <div class="container">
        <div class="row">
            <a class="logo col-md-2" href="index.html">
                <img src="__TMPL__Portal/assets/images/logo.png">
            </a>
            <tc_include file="Portal:nav"/>
        </div>
    </div>
</div>

<!--main1-->
<div class="container main1_box">
    <div class="main1_left col-lg-8">
        <div id="carousel-example-generic" class="carousel slide" data-ride="carousel">
            <!-- Indicators -->
            <ol class="carousel-indicators">
                <li data-target="#carousel-example-generic" data-slide-to="0" class="active"></li>
                <li data-target="#carousel-example-generic" data-slide-to="1"></li>
                <li data-target="#carousel-example-generic" data-slide-to="2"></li>
            </ol>
            <!-- Wrapper for slides -->
            <php>
                $pics = M('slide')->select();
            </php>
            <div class="carousel-inner" role="listbox">
                <volist name="pics" id="vo">
                    <if condition="$key eq 0">
                        <div class="item active">
                            <img src="{:sp_get_image_preview_url($vo['slide_pic'])}">
                        </div>
                        <else/>
                        <div class="item">
                            <img src="{:sp_get_image_preview_url($vo['slide_pic'])}">
                        </div>
                    </if>

                </volist>
            </div>
            <!-- Controls -->
            <a class="left carousel-control" href="#carousel-example-generic" role="button" data-slide="prev">
                <span class="glyphicon glyphicon-chevron-left banner_left" aria-hidden="true"></span>

            </a>
            <a class="right carousel-control" href="#carousel-example-generic" role="button" data-slide="next">
                <span class="glyphicon glyphicon-chevron-right banner_right" aria-hidden="true"></span>
            </a>
        </div>
    </div>

    <php>
        $lists = M('posts')->order('post_date desc')->limit(5)->select();
    </php>
        <div class="main1_right col-lg-4">
            <div class="bk">
                <div class="bkbt">最新消息</div>
                <volist name="lists" id="vo">
                    <!--<a href="{:leuu('article/index',array('id'=>$vo['object_id'],'cid'=>$vo['term_id']))}">
                    {$vo.post_title}</a>-->
                    <a href="{:U('Hacker/xxy',array('id'=>$vo['id']))}">{$vo.post_title}</a>
                </volist>
            </div>
        </div>
    </div>

<!--main2-->
<div class="container main1_box row">
    <div class="main1_left col-lg-8">
        <div class="twbk">
            <div class="ysbkbt">
                <div>创客动态</div>
            </div>
            <php>

            </php>
            <div class="twbknr1 row">
                <php>
                    $lists = sp_sql_posts_paged("cid:23;order:post_date DESC;", 4);
                </php>
                <volist name="lists['posts']" id="vo">
                    <php>
                        $smeta = json_decode($vo['smeta'], true);
                    </php>
                    <div class="col-md-6">
                        <div>
                            <a href="{:leuu('article/index',array('id'=>$vo['object_id'],'cid'=>$vo['term_id']))}" class="nrxt">
                                <img src="{:sp_get_asset_upload_path($smeta['thumb'])}"></a>
                            <a href="{:leuu('article/index',array('id'=>$vo['object_id'],'cid'=>$vo['term_id']))}" class="twnrdj">
                                <h2>{$vo.post_title}</h2>
                                <p><php>echo strip_tags($vo['post_content'])</php></p>
                            </a>
                        </div>
                    </div>
                </volist>
            </div>
        </div>
        <div class="twbk">
            <div class="ysbkbt wlcxbk">
                <div>物联创新</div>
                <a href="{:U('List/index',array('id'=>30))}"></a>
            </div>
            <div class="twbknr1 row">
                <php>
                    $lists = sp_sql_posts_paged("cid:30;order:post_date DESC;", 2);
                </php>
                <volist name="lists['posts']" id="vo">
                    <php>
                        $smeta = json_decode($vo['smeta'], true);
                    </php>
                    <div class="wlcxnr">
                        <div>
                            <a href="{:leuu('article/index',array('id'=>$vo['object_id'],'cid'=>$vo['term_id']))}" class="nrxt"><img src="{:sp_get_asset_upload_path($smeta['thumb'])}"></a>
                            <a href="{:leuu('article/index',array('id'=>$vo['object_id'],'cid'=>$vo['term_id']))}" class="twnrdj">
                                <h2>{$vo.post_title}</h2>
                                <p><php>echo strip_tags($vo['post_content'])</php></p>
                            </a>
                        </div>
                    </div>
                </volist>
            </div>
        </div>
        <div class="twbk">
            <div class="ysbkbt">
                <div>感知生长</div>
                <a href="{:U('List/index',array('id'=>42))}"></a>
            </div>
            <div class="twbknr1 row">
                <php>
                    $lists = sp_sql_posts_paged("cid:42;order:post_date DESC;", 2);
                </php>
                <volist name="lists['posts']" id="vo">
                    <php>
                        $smeta = json_decode($vo['smeta'], true);
                    </php>
                    <div class="wlcxnr">
                        <div>
                            <a href="{:leuu('article/index',array('id'=>$vo['object_id'],'cid'=>$vo['term_id']))}" class="nrxt"><img src="{:sp_get_asset_upload_path($smeta['thumb'])}"></a>
                            <a href="{:leuu('article/index',array('id'=>$vo['object_id'],'cid'=>$vo['term_id']))}" class="twnrdj">
                                <h2>{$vo.post_title}</h2>
                                <p><php>echo strip_tags($vo['post_content'])</php></p>
                            </a>
                        </div>
                    </div>
                </volist>
            </div>
        </div>
        <div class="twbk">
            <div class="ysbkbt wlcxbk">
                <div>创课学堂</div>
                <a href="{:U('List/index',array('id'=>41))}"></a>
            </div>
            <div class="twbknr1 row">
                <php>
                    $courseSeries = M('course_series')->order('create_at desc')->limit(3)->select();
                </php>
                <volist name="courseSeries" id="vo">
                    <div class="col-md-4">
                        <div>
                            <a class="nrxt"><img src="{:sp_get_image_preview_url($vo['icon'])}"></a>
                            <a class="twnrdj">
                                <h2>{$vo.series_name}</h2>
                                <p>{$vo.series_intro}</p>
                            </a>
                            <a href="{:U('Hacker/xtxx',array('id'=>$vo['id']))}" class="ckxx">查看详细</a>
                        </div>
                    </div>
                </volist>
            </div>
        </div>
    </div>

    <php>
        $lists = M('posts')->order('post_hits desc')->limit(5)->select();
    </php>
    <div class="main1_right col-lg-4">
        <div class="bk">
            <div class="twbk" style="margin-bottom:0;">
                <div class="ysbkbt hsgdbt">
                    <div>近期热点</div>
                </div>
            </div>
            <volist name="lists" id="vo">
                <a href="{:U('Hacker/xxy',array('id'=>$vo['id']))}">{$vo.post_title}</a>
            </volist>
        </div>

        <div class="twbk xzbk">
            <div class="ysbkbt jszlxz">
                <div>竞赛资料下载</div>
                <a href="{:U('List/index',array('id'=>32))}"></a>
            </div>
            <div class="zlxzt">
                <php>
                    $docs=M('doc')->order('create_at desc')->limit(3)->select();
                </php>
                <volist name="docs" id="vo">
                    <div>
                        <a href="javascript:void(0);" class="jsgzwz">{$vo.title}</a>
                        <a href="{:sp_get_image_preview_url($vo['download_url'])}" class="jsgzxz">下载</a>
                    </div>
                    <span></span>
                </volist>
            </div>
        </div>
        <div class="twbk">
            <div class="ysbkbt hsgdbt">
                <div>关注我们</div>
            </div>
            <div class="gywmewm row">
                <div class="col-xs-6">
                    <div>
                        <img src="__TMPL__Portal/assets/images/qqqewm.png">
                        <span>QQ群二维码</span>
                    </div>
                </div>
                <div class="col-xs-6">
                    <div>
                        <img src="__TMPL__Portal/assets/images/wxewm.png">
                        <span>微信公众号</span>
                    </div>
                </div>
            </div>
        </div>
    </div>

</div>


<!--页脚-->
<div class="footer_box">
    <div class="sglj">
        <a href="Hacker/dl.html">登录</a>
        <div>|</div>
        <a href="Hacker/zc.html">注册</a>
        <div>|</div>
        <a href="#top">回到顶部</a>
    </div>
    <div>Copyright&nbsp;©&nbsp;2017&nbsp;无锡创客英雄&nbsp;版权所有&nbsp;All&nbsp;Rights&nbsp;Reserved</div>
</div>


</body>
</html>
